package com.qf.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.stereotype.Component;

/**
 * @author 金园
 * @create 2022/6/8
 * @Description
 * @className student
 * @packageName com.qf.pojo
 */
@Data
@Component
@ConfigurationProperties(prefix = "student")
public class Student {
//    @Value("${students[1].id}")
    private int id;
//    @Value("${user_name}")
    private String name;
//    @Value("${student.age}")
    private int age;

//    @Value("${arr[0]}")
    private String subject;

}
